package com.jjty.dataGenerator.sxhcampus.utils;

import java.util.HashMap;

public class AgentIdMap extends HashMap<String,String> {

    private AgentIdMap(){
        //咸阳：快上云：508402   其他：烽火万家：508393
        put("渭南市","508402");
        put("咸阳市","508402");
    }

    private static final AgentIdMap INSTANCE = new AgentIdMap();

    public static AgentIdMap getInstance(){
        return INSTANCE;
    }

    /**
     * 根据市名，拿到代理商id
     * @param cityName
     * @return
     */
    public static String getAgentIdByCityName(String cityName){
        return INSTANCE.getOrDefault(cityName, "508393");
    }

}
